package 常见容器;

class Solution {
    public int getNumberOfK(int[] nums, int k) {
        int ret = 0;

        for(int i = 0; i < nums.length; ++ i ) {
            if(nums[i] == k)ret++;
        }
        return ret;
    }
}
